package com.adms.domain;

import com.adms.domain.Reform;
import com.adms.domain.ReformExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ReformMapper {
	
//
	Map<String, Object> count();
	List<Reform> selectForRemindReforms();
	List<Reform> listRelative(@Param("reformId") Integer reformId, @Param("type") Integer type,@Param("state") Integer state,@Param("signType") Integer signType);
	List<Reform> selectByExampleWithKey(@Param("ex") ReformExample ex, @Param("key") String key);
	Map<String, Object> selectByPrimaryKeyWithProcedure(@Param("reformId") Integer reformId);
	void deleteBatch(int[] reformIds);
	void updateTimeOver();
//
	
    long countByExample(ReformExample example);

    int deleteByExample(ReformExample example);

    int deleteByPrimaryKey(Integer reformId);

    int insert(Reform record);

    int insertSelective(Reform record);

    List<Reform> selectByExample(ReformExample example);

    Reform selectByPrimaryKey(Integer reformId);

    int updateByExampleSelective(@Param("record") Reform record, @Param("example") ReformExample example);

    int updateByExample(@Param("record") Reform record, @Param("example") ReformExample example);

    int updateByPrimaryKeySelective(Reform record);

    int updateByPrimaryKey(Reform record);

}